package com.itjin.resume_back.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("project")
public class Project {
  @TableId(type = IdType.AUTO)
  private Long id;

  private Long userId;

  private String name;

  private String description;

  private String techStack; // 技术栈，JSON格式存储

  private String fileUrl; // MinIO文件路径

  private Integer downloadCount; // 下载次数

  private Integer isApproved; // 0-待审核 1-已通过 2-已拒绝

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;

  @TableLogic
  private Integer deleted; // 0-未删除 1-已删除
}